package service

import (
	"e_mall_server/dao/mysql"
	"e_mall_server/models"
)

/**
 * @Author: zhaobin
 * @Description TODO
 * @Date: 2022-05-12 9:56
 */

// UpdateSetting 修改商城设置信息
func UpdateSetting(setting *models.Setting) int64 {
	return mysql.UpdateSetting(setting)
}

// GetSettingDetailById 通过商城设置id获取商城设置详细信息
func GetSettingDetailById(id int64) (models.Setting, error) {
	return mysql.GetSettingDetailById(id)
}
